<script setup>
import { defineProps,defineExpose } from 'vue'
defineExpose({
  name,
})
defineProps({
    name: {
        type: String, 
        required: true,
        default: 'whx'
    }
})

// throw new Error('你出问题了')
  
</script>

<template>
    <el-button type="primary">{{name}}</el-button>
</template>